package com.yyq.adms.usermanage.bpo.impl;

import java.io.Serializable;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.yyq.adms.usermanage.bpo.SysOnlineUsersBpo;
import com.yyq.adms.usermanage.dao.SysOnlineUsersDao;
import com.yyq.adms.usermanage.pojo.SysOnlineUsers;
import com.yyq.sos.service.BaseBpoImpl;

@Transactional
@Service("sysOnlineUsersBpo")
public class SysOnlineUsersBpoImpl extends BaseBpoImpl implements
		SysOnlineUsersBpo {
	private SysOnlineUsersDao dao;
	
	@Resource(name="sysOnlineUsersDao")
	public void setDao(SysOnlineUsersDao dao) {
		this.dao = dao;
		this.setBaseDao(dao);
	}

	public boolean update(Object obj){
		SysOnlineUsers onlineUsers = (SysOnlineUsers) obj;
		return super.update(onlineUsers);
	}

	public Object findByPk(Serializable id)
	{
		SysOnlineUsers onlineUsers = (SysOnlineUsers) super.findByPk(id);
		return onlineUsers;
	}

}
